﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Product;

public partial class Supply_Detail : Base.BasePage
{
    int ID = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["id"] != null)
        {
            if (Base.GetRequest.isNum(Request.QueryString["id"]))
            {
                ID = Convert.ToInt32(this.Request.QueryString["id"]);
            }
        }
        if (!IsPostBack)
        {
            TSupply ts = new RSupply().GateItem(ID);
            if (ts.Units != null)
            {
                Bind();
            }
            else
                Response.Redirect("/Error.aspx");
        }
    }

    private void Bind()
    {
        string WSbody = new nspLable.Using.Principal().GetTemplate("Supply_Detail");
        Response.Write(WSbody);
    }
}
